<?php

namespace Desktopd;

require_once __DIR__ . '/autoloader.php';


$ruleDir = __DIR__ . '/../https-everywhere/https-everywhere/src/chrome/content/rules';
$userRuleDir = __DIR__ . '/../https-everywhere/HTTPSEverywhereUserRules';
$httpsEverywhere = new HTTPSEverywhere\HTTPSEverywhere($ruleDir, $userRuleDir);

var_dump(count($httpsEverywhere));
var_dump($httpsEverywhere->rewrite('http://www.eff.org/https-everywhere'));

var_dump($httpsEverywhere->rewrite('http://www.twitter.com/twitter'));

// vim: ts=4 et ai

